home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / NMK / Recorders / TranscriptLinker.h < prev    next >
Text File  |  1995-06-12  |  894b  |  42 lines

  1. /***** TranscriptLinker.h -- liason object interface
  2.     NeXTstep Measurement Kit
  3.     by Alex Meyer <ameyer@phoenix.Princeton.EDU>
  4.     for computer science senior thesis
  5.     16 April 1992 -- created
  6.     23 April 1992 -- added central LINKERNAME
  7.     24 April 1992 -- added info about linked objects
  8. *****/
  9.  
  10. #import <objc/hashtable.h>
  11. #import <objc/Storage.h>
  12. #import "TranscriptManager.h"
  13. #import <objc/Object.h>
  14.  
  15. #define LINKERNAME ("RLinker")
  16.  
  17. typedef struct {
  18.     id obj;    /* linked object (see below) */
  19.     unsigned type;
  20.     NXAtom key;
  21.     unsigned index;    /* for random access via TranscriptManager */
  22. } tlRec,*tlPtr;
  23.  
  24. @interface TranscriptLinker : Object
  25. {
  26.     id manager;
  27.     id storage;    /* of links */
  28. }
  29.  
  30. - connect:sender;
  31.  
  32. @end
  33.  
  34. /* linked objects must implement the following methods:
  35.     - (unsigned)type;
  36.     - (NXAtom)key;
  37.     - (NXAtom)desc;
  38.     - (unsigned)statsSize;
  39.     - (void *)copyOfStats;
  40.     - copyInStats:(void *)NewStats;
  41. */
  42.